﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Address.aspx.cs" Inherits="Card.Web.Member.Address" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Register Src="Header.ascx" TagName="Header" TagPrefix="uc1" %>
<%@ Register Src="../Controls/Footer.ascx" TagName="Footer" TagPrefix="uc1" %>
<%@ Register Src="Menu.ascx" TagName="Menu" TagPrefix="uc1" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>会员中心_<%=SiteName %></title>
    <link href="../css/layout.css" type="text/css" rel="Stylesheet" />
    <link href="../css/member.css" type="text/css" rel="Stylesheet" />
    <link href="../css/login.css" type="text/css" rel="Stylesheet" />
</head>
<body>
    <form id="form1" runat="server">
    <uc1:Header ID="Header1" runat="server"></uc1:Header>
    <div class="content">
        <uc1:Menu ID="Menu1" runat="server"></uc1:Menu>
        <div class="right">
            <div class="top_info clear-fix">
                <h2>
                    地址管理</h2>
            </div>
            <div class="inputarea" style="margin-top: 20px; margin-left: 10px;">
                <p>
                    <span class="text">收货人姓名：</span><asp:TextBox ID="txtReceiver" CssClass="input" MaxLength="20"
                        runat="server"></asp:TextBox>
                    <span class="red_notice" style="line-height: 30px;">*</span>
                </p>
                <p>
                    <span class="text">省市区/县：</span><asp:TextBox ID="txtArea" CssClass="input" Width="400px"
                        MaxLength="20" runat="server"></asp:TextBox>
                    <span class="red_notice" style="line-height: 30px;">*</span>
                </p>
                <p>
                    <span class="text">乡镇/街道：</span><asp:TextBox ID="txtStreet" CssClass="input" Width="400px"
                        MaxLength="20" runat="server"></asp:TextBox>
                    <span class="red_notice" style="line-height: 30px;">*</span>
                </p>
                <p>
                    <span class="text">邮政编码：</span><asp:TextBox ID="txtPostCode" CssClass="input" MaxLength="20"
                        runat="server"></asp:TextBox>
                    <span class="red_notice" style="line-height: 30px;">*</span>
                </p>
                <p>
                    <span class="text">联系电话：</span><asp:TextBox ID="txtTel" CssClass="input" MaxLength="20"
                        runat="server"></asp:TextBox>
                    <span class="red_notice" style="line-height: 30px;">*</span>
                </p>
                <p>
                    <span class="text">&nbsp;</span>
                    <asp:Button ID="btnSave" runat="server"  CssClass="button" Text="保存" />
                </p>
            </div>
            <div class="top_info clear-fix">
                <h3>
                    已经保存地址</h3>
            </div>
            <table class="TB">
                <tr class="TB_Header">
                    <td>
                        收货人
                    </td>
                    <td>
                        省市区/县
                    </td>
                    <td>
                        乡镇/街道
                    </td>
                    <td>
                        邮政编码
                    </td>
                    <td>
                        联系电话
                    </td>
                    <td>
                        操作
                    </td>
                </tr>
                <asp:Repeater ID="rptList" runat="server">
                    <ItemTemplate>
                        <tr class="TB_Item">
                            <td>
                                <%# Eval("RECEIVER_NAME")%>
                            </td>
                            <td>
                                <%# Eval("AREA") %>
                            </td>
                            <td>
                                <%# Eval("STREET") %>
                            </td>
                            <td>
                                <%# Eval("POST_CODE") %>
                            </td>
                            <td>
                                <%# Eval("PHONE") %>
                            </td>
                            <td  align="center">
                                <asp:LinkButton ID="lbtnDelete" runat="server" Text="删除" OnClientClick="javascript:return confirm('确定删除？');"
                                    CommandName="D" CommandArgument='<%# Eval("ID") %>'></asp:LinkButton>|<asp:LinkButton
                                        ID="LinkButton1" runat="server" Text="修改" CommandName="M" CommandArgument='<%# Eval("ID") %>'></asp:LinkButton>
                            </td>
                        </tr>
                    </ItemTemplate>
                    <AlternatingItemTemplate>
                        <tr class="TB_Item">
                            <td>
                                <%# Eval("RECEIVER_NAME") %>
                            </td>
                            <td>
                                <%# Eval("AREA") %>
                            </td>
                            <td>
                                <%# Eval("STREET") %>
                            </td>
                            <td>
                                <%# Eval("POST_CODE") %>
                            </td>
                            <td>
                                <%# Eval("PHONE") %>
                            </td>
                            <td align="center">
                                <asp:LinkButton ID="lbtnDelete" runat="server" Text="删除" OnClientClick="javascript:return confirm('确定删除？');"
                                    CommandName="D" CommandArgument='<%# Eval("ID") %>'></asp:LinkButton>|<asp:LinkButton
                                        ID="LinkButton1" runat="server" Text="修改" CommandName="M" CommandArgument='<%# Eval("ID") %>'></asp:LinkButton>
                            </td>
                        </tr>
                    </AlternatingItemTemplate>
                </asp:Repeater>
            </table>
        </div>
    </div>
    <uc1:Footer ID="Footer1" runat="server" />
    <asp:HiddenField ID="hdnAddressID" Value="0" runat="server" />
    </form>
</body>
</html>
